foods=["pizza","falafel","carrot cake"]
num=0            #初始化计数器
for food in foods:
    num+=1        #每次循环递增
    print("\n第%d种喜欢吃的食物:"%num,food,"\n")


solarys=[100,200,300,400]

for s in range(len(solarys)):
    solarys[s]=solarys[s]+(s+1)
print("变更后的薪水：",solarys,"\n")


solarys=[100,200,300,400]
ss=list(range(1,len(solarys)+1))
m=0
for solary in solarys:
    solarys[m]=solarys[m]+ss[m]
    m+=1
print("变更后的薪水：",solarys,"\n")


solary=[100,200,300,400]
time=0
for i in solary:
  solary[time]=solary[time]+(time+1)
  time=time+1
print("变更后的薪水：",solary,"\n")



solarys=[100,200,300,400]
sx=list(range(1,len(solarys)+1))
solarys_1=[]
x=0
for solary in solarys:
    solarys_1.append(solary+sx[x])
    x=x+1
print("变更后的薪水：",solarys_1,"\n")




for i in range(1,10):
   for j in range(1,i+1):
      print(j,"*",i,"=",i*j,end="\t")
   print()


demensions=(200,50)
a=demensions[0]
b=demensions[1]
print(a,b)
for demension in demensions:
    print(demension)

dinner=("kaoyu","shaguo","huoguo","chuanchuan","tangguo")
for dinne in dinner:
	print(dinne,end=" ")
print(" ")
#dinner[1]="meiwa"
#print(dinner)

dinner=("kaoyu","shaguo","huoguo","zhongcan","haixian")
for dinne in dinner:
	print(dinne,end=" ")
print("  ")	
i=[]
for i_1 in range(1, 101):
    i.append(i_1)
print(sum(i))



price=2.50
if price<1.50:
    print("get one,i'm thirsty!")
elif price<=2.00:
    print("ummm...sure,but i'll drink it slowly.")
else:
    print("i don't have enough money.never mind.","\n")


i=10
while i > 0:
    print("lift off in:")
    print(i)
    i=i-1
print()

for p in range(10,0,-1):
    print("t_minus:")
    print(p)
print()


while True:
    print("you're going to get bored with this quickly")
    break



while True:
    how_old=input("enter your age: ")
    if how_old=="no":
        print("don't be ashamed of your age!")
        break
    elif int(how_old) > 18:
        print("that is old!")
    else:
        print("wa you're so young!")


for foods_1 in ("pate","cheese","crackers","yogurt"):
    if foods_1=="yogurt":
        break
    else:
        print("there is no yogurt")


for foods_1 in ("pate","cheese","crackers"):
    if foods_1=="yogurt":
        break
    else:
        print("there is no yogurt")





for i in range(1,10):
    for j in range(1,i+1):
        print(i,"*",j,"=",i*j,end="\t")
        if j==i:
            print("\n")

x=input("请输入数量： ")
for h in range(1,int(x),2):
    print(h*"*")



x=input("请输入数量： ")
s=list(range(1,int(x),2))
u=len(s)
for h in s:
    print((u-1)*" ",h*"*")
    u=u-1



x=input("请输入数量： ")
s=list(range(2,int(x),4))
u=len(s)
for h in s:
    print(2*(u-1)*" ",h*"*")
    u=u-1


x=input("请输入数量： ")
s=list(range(1,int(x),4))
u=len(s)
for h in s:
    print(2*(u-1)*" ",h*"*")
    u=u-1

'''
x=input("请输入数量： ")
s=list(range(1,int(x),3))
u=len(s)
for h in s:
    print(2*(u-1)*" ",h*"*")
    u=u-1
'''